package cn.zc.spring_minio1.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class minioConfig {
    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder()
                .endpoint("http://47.96.177.204:9000")
                .credentials("minioadmin","minioadmin")
                .build();
    }
}
